package com.security.encrypt;


/**
 * @author : YOULU  sym
 * date   : 2020/6/12 0012
 * desc   :
 */
public class EncryptUtils {

    private static final String TAG = "EncryptUtils";

    private static boolean DEBUG = true;

    static {
        System.loadLibrary("encrypt");
    }

    private static class Holder {
        private static EncryptUtils sInstance = new EncryptUtils();
    }

    private EncryptUtils() {
    }

    public static EncryptUtils getInstance() {
        return Holder.sInstance;
    }

    public native byte[] test(String str) throws Throwable;


    public native String dbb(String password, byte[] content, String charset, String model, byte[] iv) throws Throwable;

    //String decrypt(String password, String content, String model, byte[] iv)
    public native String d(String password, String content, String model, byte[] iv) throws Throwable;

    public native byte[] etb(String password, String content, String charset, String model, byte[] iv) throws Throwable;

    //public static String encrypt(String password, String content, String model, byte[] iv)
    public native String e(String password, String content, String model, byte[] iv) throws Throwable;

    public native String re(String data, String keySrc) throws Throwable;

}
